package portal.mybatis.dao;

import java.util.Date;

public class JobEntity {
	
	 private String startInfo;

    private String jobId;

    private String jobName;

    private String jobStatus;

    private String jobSequence;

    private String jobPriority;

    private String scheduleStrategy;

    private Date submitTime;

    private Date endTime;

    private Date startTime;

    private Integer jobSlotQuantity;

    private String usedMemory;

    private Integer occupiedCpuQuantity;

    private String cpuExecutedTime;

    private String executeHost;

    private String cpuUsage;

    private String remainMem;

    private Integer mpiProcessorsQuantity;
    
    private Integer deleted;    

	 private String command;

	 private String executeFilePath;

	 private String dependentFiles;

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId == null ? null : jobId.trim();
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName == null ? null : jobName.trim();
    }

    public String getJobStatus() {
        return jobStatus;
    }

    public void setJobStatus(String jobStatus) {
        this.jobStatus = jobStatus == null ? null : jobStatus.trim();
    }

    public String getJobSequence() {
        return jobSequence;
    }

    public void setJobSequence(String jobSequence) {
        this.jobSequence = jobSequence == null ? null : jobSequence.trim();
    }

    public String getJobPriority() {
        return jobPriority;
    }

    public void setJobPriority(String jobPriority) {
        this.jobPriority = jobPriority == null ? null : jobPriority.trim();
    }

    public String getScheduleStrategy() {
        return scheduleStrategy;
    }

    public void setScheduleStrategy(String scheduleStrategy) {
        this.scheduleStrategy = scheduleStrategy == null ? null : scheduleStrategy.trim();
    }

    public Date getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Integer getJobSlotQuantity() {
        return jobSlotQuantity;
    }

    public void setJobSlotQuantity(Integer jobSlotQuantity) {
        this.jobSlotQuantity = jobSlotQuantity;
    }

    public String getUsedMemory() {
    	  if(usedMemory==null)
    		  return "0M";
        return usedMemory;
    }

    public void setUsedMemory(String usedMemory) {
        this.usedMemory = usedMemory == null ? null : usedMemory.trim();
    }

    public Integer getOccupiedCpuQuantity() {
        return occupiedCpuQuantity;
    }

    public void setOccupiedCpuQuantity(Integer occupiedCpuQuantity) {
        this.occupiedCpuQuantity = occupiedCpuQuantity;
    }

    public String getCpuExecutedTime() {
        return cpuExecutedTime;
    }

    public void setCpuExecutedTime(String cpuExecutedTime) {
        this.cpuExecutedTime = cpuExecutedTime == null ? null : cpuExecutedTime.trim();
    }

    public String getExecuteHost() {
        return executeHost;
    }

    public void setExecuteHost(String executeHost) {
        this.executeHost = executeHost == null ? null : executeHost.trim();
    }

    public String getCpuUsage() {
        return cpuUsage;
    }

    public void setCpuUsage(String cpuUsage) {
        this.cpuUsage = cpuUsage == null ? null : cpuUsage.trim();
    }

    public String getRemainMem() {
        return remainMem;
    }

    public void setRemainMem(String remainMem) {
        this.remainMem = remainMem == null ? null : remainMem.trim();
    }

    public Integer getMpiProcessorsQuantity() {
        return mpiProcessorsQuantity;
    }

    public void setMpiProcessorsQuantity(Integer mpiProcessorsQuantity) {
        this.mpiProcessorsQuantity = mpiProcessorsQuantity;
    }
    
    public Integer getDeleted() {
    	if(deleted==null || deleted<=0)
    		return 0;
    	return 1;
	}

	public void setDeleted(Integer deleted) {
		this.deleted= deleted;
    }
    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command == null ? null : command.trim();
    }

    public String getExecuteFilePath() {
        return executeFilePath;
    }

    public void setExecuteFilePath(String executeFilePath) {
        this.executeFilePath = executeFilePath == null ? null : executeFilePath.trim();
    }

    public String getStartInfo() {
        return startInfo;
    }

    public void setStartInfo(String startInfo) {
        this.startInfo = startInfo == null ? null : startInfo.trim();
    }

    public String getDependentFiles() {
        return dependentFiles;
    }

    public void setDependentFiles(String dependentFiles) {
        this.dependentFiles = dependentFiles == null ? null : dependentFiles.trim();
    }
 }